package main
import "fmt"
func main(){
	a := fx1()
	fmt.Printf("a type is :%T\n", a)
	fmt.Println(a())
	fmt.Println(a())
	fmt.Println(a())
	fmt.Println(a())
	fmt.Println(a())
	fmt.Println(a())
	fmt.Println(a())
	fmt.Println(a())
}

func fx1() (func() int){
	var number int
	return func()int{
		number++
		return number
	}
}
